home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 125
/
Freelog_MarsAvril2015_No125.iso
/
Musique
/
Quod Libet
/
quodlibet-3.3.0-installer.exe
/
bin
/
quodlibet
/
const.pyc
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2014-12-31
|
7KB
|
110 lines
# Source Generated with Decompyle++
# File: in.pyc (Python 2.7)
import sys
import os
import locale
from import windows
class Version(tuple):
'''Represent the version of a dependency as a tuple'''
def __new__(cls, *args):
value = args[0] if len(args) == 1 else args
return tuple.__new__(Version, value)
def human_version(self):
return '.'.join(map(str, self))
def __str__(self):
return self.human_version()
class MinVersions(object):
'''Dependency requirements for Quod Libet / Ex Falso'''
PYTHON = Version(2, 7)
MUTAGEN = Version(1, 14)
VERSION_TUPLE = Version(3, 3, 0)
VERSION = str(VERSION_TUPLE)
PROCESS_TITLE_QL = 'quodlibet'
PROCESS_TITLE_EF = 'exfalso'
if os.name == 'nt':
file_path = __file__.decode(sys.getfilesystemencoding())
BASEDIR = os.path.dirname(os.path.realpath(file_path))
HOME = windows.get_personal_dir()
USERDIR = os.path.join(windows.get_appdate_dir(), 'Quod Libet')
environ = windows.WindowsEnviron()
else:
BASEDIR = os.path.dirname(os.path.realpath(__file__))
HOME = os.path.expanduser('~')
USERDIR = os.path.join(HOME, '.quodlibet')
environ = os.environ
if 'QUODLIBET_USERDIR' in environ:
USERDIR = environ['QUODLIBET_USERDIR']
IMAGEDIR = os.path.join(BASEDIR, 'images')
_CONF_PATH = os.path.join(BASEDIR, 'conf.py')
if os.name == 'nt':
_CONF_PATH = _CONF_PATH.encode(sys.getfilesystemencoding())
try:
execfile(_CONF_PATH)
except IOError:
pass
CONTROL = os.path.join(USERDIR, 'control')
CONFIG = os.path.join(USERDIR, 'config')
CURRENT = os.path.join(USERDIR, 'current')
LIBRARY = os.path.join(USERDIR, 'songs')
LOGDIR = os.path.join(USERDIR, 'logs')
LIBRARY_SAVE_PERIOD_SECONDS = 900
BRANCH_NAME = 'quodlibet-3.3'
DOCS_BASE_URL = 'https://quodlibet.readthedocs.org/en/%s'
DOCS_LATEST = DOCS_BASE_URL % 'latest'
DOCS_BASE_URL %= BRANCH_NAME if BRANCH_NAME != 'default' else 'latest'
ONLINE_HELP = DOCS_BASE_URL + '/guide/index.html'
SEARCH_HELP = DOCS_BASE_URL + '/guide/searching.html'
WEBSITE = 'http://code.google.com/p/quodlibet'
COPYRIGHT = 'Copyright \xc2\xa9 2004-2014 Joe Wreschnig, Michael Urman, I\xc3\xb1igo Serna,\nSteven Robertson, Christoph Reiter, Nick Boultbee, ...'
EMAIL = environ.get('EMAIL', 'quodlibet@lists.sacredchao.net')
SUPPORT_EMAIL = 'quod-libet-development@googlegroups.com'
AUTHORS = sorted('Alexandre Passos\nAlexey Bobyakov\nAlex Geoffrey Smith\nAnders Carlsson\nAndreas Bombe\nAnton Shestakov\nAri Pollak\nAymeric Mansoux\nBastian Kleineidam\nBastien Gorissen\nBen Zeigler\nCarlo Teubner\nChristine Spang\nChristoph Reiter\nDavid K\xc3\xa5gedal\nDavid Schneider\nDecklin Foster\nEduardo Gonzalez\nErich Schubert\nEric Le Lay\nFederico Pelloni\nFelix Krull\nFlorian Demmer\nGuillaume Chazarain\nHans Scholze\nI\xc3\xb1igo Serna\nJacob Lee\nJan Arne Petersen\nJan Path\nJavier Kohen\nJoe Higton\nJoe Wreschnig\nJohan Hovold\nJohannes Marbach\nJohannes Rohrer\nJoschka Fischer\nJosh Lee\nJoshua Kwan\nLalo Martins\nLee Willis\nLuk\xc3\xa1\xc5\xa1 Lalinsk\xc3\xbd\nMarkus Koller\nMartijn Pieters\nMartin Bergstr\xc3\xb6m\nMicha\xc3\xabl Ball\nMichael Urman\nMickael Royer\nNicholas J. Michalek\nNick Boultbee\nNiklas Janlert\nNikolai Prokoschenko\nPhilipp M\xc3\xbcller\nPhilipp Weis\nQuincy John Hamilton\nRemi Vanicat\nRobert Muth\nSebastian Th\xc3\xbcrrschmidt\nSimonas Kazlauskas\nSteven Robertson\nThomas Vogt\nTobias Wolf\nTomasz Miasko\nTomasz Torcz\nTshepang Lekhonkhobe\nT\xc3\xbcrerkan \xc4\xb0nce\nVasiliy Faronov\nZack Weinberg\n'.strip().split('\n'))
TRANSLATORS = sorted('\nAlexandre Passos (pt)\nAndreas Bertheussen (nb)\nAnton Shestakov (ru)\nBastian Kleineidam (de)\nBastien Gorissen (fr)\nByung-Hee HWANG (ko)\nChangBom Yoon (ko)\nDaniel Nyberg (sv)\nDimitris Papageorgiou (el)\nDjavan Fagundes (pt)\nEin\xc4\x81rs Spr\xc5\xab\xc4\xa3is (lv)\nEirik Haatveit (nb)\nEmfox Zhou (zh_CN)\nErik Christiansson (sv)\nFabien Devaux (fr)\nFilippo Pappalardo (it)\nGuillaume Ayoub (fr)\nHans van Dok (nl)\nHonza Hejzl (cs_CZ)\nHsin-lin Cheng (zh_TW)\nJari Rahkonen (fi)\nJavier Kohen (es)\nJoe Wreschnig (en_CA)\nJoh\xc3\xa1m-Lu\xc3\xads Migu\xc3\xa9ns Vila (es, gl, gl_ES, eu, pt)\nJonas Slivka (lt)\nJoshua Kwan (fr)\nLuca Baraldi (it)\nLuk\xc3\xa1\xc5\xa1 Lalinsk\xc3\xbd (sk)\nMathieu Morey (fr)\nMichal Nowikowski (pl)\nMugurel Tudor (ro)\nMykola Lynnyk (uk)\nNaglis Jonaitis (lt)\nNick Boultbee (fr, en_GB)\nOlivier Gambier (fr)\nPiarres Beobide (eu)\nPiotr Dr\xc4\x85g (pl)\nRoee Haimovich (he)\nR\xc3\xbcdiger Arp (de)\nSZERV\xc3\x81C Attila (hu)\nTomasz Torcz (pl)\nT\xc3\xbcrerkan \xc4\xb0nce (tr)\nWitold Kiera\xc5\x9b (pl)\nYasushi Iwata (ja)\n\xce\x94\xce\xb7\xce\xbc\xce\xae\xcf\x84\xcf\x81\xce\xb7\xcf\x82 \xce\xa0\xce\xb1\xcf\x80\xce\xb1\xce\xb3\xce\xb5\xcf\x89\xcf\x81\xce\xb3\xce\xaf\xce\xbf\xcf\x85 (el)\n\xd0\x90\xd0\xbd\xd0\xb4\xd1\x80\xd0\xb5\xd0\xb9 \xd0\xa4\xd0\xb5\xd0\xb4\xd0\xbe\xd1\x81\xd0\xb5\xd0\xb5\xd0\xb2 (ru)\n\xd0\x9c\xd0\xb8\xd0\xba\xd0\xbe\xd0\xbb\xd0\xb0 \'Cthulhu\' \xd0\x9b\xd0\xb8\xd0\xbd\xd0\xbd\xd0\xb8\xd0\xba (uk)\n\xd0\x9d\xd0\xb8\xd0\xba\xd0\xbe\xd0\xbb\xd0\xb0\xd0\xb9 \xd0\x9f\xd1\x80\xd0\xbe\xd0\xba\xd0\xbe\xd1\x88\xd0\xb5\xd0\xbd\xd0\xba\xd0\xbe (ru)\n\xd0\xa0\xd0\xbe\xd1\x81\xd1\x82\xd0\xb8\xd1\x81\xd0\xbb\xd0\xb0\xd0\xb2 "zbrox" \xd0\xa0\xd0\xb0\xd0\xb9\xd0\xba\xd0\xbe\xd0\xb2 (bg)\n\xd0\xa1\xd0\xb5\xd1\x80\xd0\xb3\xd0\xb5\xd0\xb9 \xd0\xa4\xd0\xb5\xd0\xb4\xd0\xbe\xd1\x81\xd0\xb5\xd0\xb5\xd0\xb2 (ru)\n'.strip().splitlines())
ARTISTS = sorted('Tobias\nJakub Steiner\nFabien Devaux\n'.strip().split('\n'))
DEFAULT_COLUMNS = '~#track ~people ~title~version ~album~discsubtitle ~#length'.split()
TBP = os.path.join(USERDIR, 'lists', 'tagpatterns')
TBP_EXAMPLES = '<tracknumber>. <title>\n<tracknumber> - <title>\n<tracknumber> - <artist> - <title>\n<artist> - <album>/<tracknumber>. <title>\n<artist>/<album>/<tracknumber> - <title>'
NBP = os.path.join(USERDIR, 'lists', 'renamepatterns')
NBP_EXAMPLES = '<tracknumber>. <title>\n<tracknumber|<tracknumber>. ><title>\n<tracknumber> - <title>\n<tracknumber> - <artist> - <title>\n/path/<artist> - <album>/<tracknumber>. <title>\n/path/<artist>/<album>/<tracknumber> - <title>'
if not '--debug' in sys.argv:
pass
DEBUG = 'QUODLIBET_DEBUG' in environ
try:
ENCODING = locale.getpreferredencoding()
except locale.Error:
ENCODING = 'utf-8'
try:
u''.encode(ENCODING)
except LookupError:
ENCODING = 'utf-8'
if os.name == 'nt':
FSCODING = 'utf-8'
elif 'G_FILENAME_ENCODING' in environ:
FSCODING = environ['G_FILENAME_ENCODING'].split(',')[0]
if FSCODING == '@locale':
FSCODING = ENCODING
elif 'G_BROKEN_FILENAMES' in environ:
FSCODING = ENCODING
else:
FSCODING = 'utf-8'
del os
del locale